package cn.gp.mapper;

import cn.gp.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName UserMapper
 * @Description TODO
 * @Author He_Guoping
 * @Date 2023/5/22 13:38
 * @Version 1.0
 */
@Mapper
public interface UserMapper {

    @Select("select username from user where username = #{username} and password = #{password};")
    User selectByUsername(User user);
}
